xl: generate a new random VM generation ID if requested
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 27 Jun 2014 13:57:52 +0000 (14:57 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 27 Jun 2014 14:56:05 +0000 (15:56 +0100)
commit0f5def4b724e2cd31247246e6dd651e5447f3bdb
tree60ba92de9ce70a7b3374f98e7a33964dae7269d3
parentbfa33afa52f4c1a96620cd961dce1e32e33becb4
xl: generate a new random VM generation ID if requested

If the "generation_id" option is set in the domain configuration,
generate and set a new random VM generation ID every time a domain is
created or restored.

xl lacks the infrastructure to fully track the lifecycle of VM images
as they are snapshotted and cloned (etc) so always using a new ID is
the safe option and ensures that a new one will be used where it matters.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
docs/man/xl.cfg.pod.5
tools/libxl/xl_cmdimpl.c